package thread;

import static java.lang.Thread.sleep;
//实现 Runnable 接⼝
public class MyThread3 implements Runnable{

    @Override
    public void run() {
        while (true) {
            System.out.println("hello thread");;
            try {
                sleep(5000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
